package com.example.micro_property_springboot.pojo.DTO.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;
/**
 * 资产盘点计划更新请求参数
 */
@Data
@Schema(description = "资产盘点计划更新请求参数")
public class AssetCheckPlanUpdateRequest {

    @NotBlank(message = "盘点范围不能为空")
    @Schema(description = "盘点范围（ALL-全量，DEPT-部门，CATEGORY-分类）", required = true)
    private String checkScope;

    @Schema(description = "范围ID（部门ID/分类ID，全量时为NULL）")
    private Long scopeId;

    @NotNull(message = "盘点人ID不能为空")
    @Schema(description = "盘点人ID", required = true)
    private Long checkUserId;

    @NotNull(message = "开始时间不能为空")
    @Schema(description = "开始时间", required = true)
    private LocalDateTime startTime;

    @NotNull(message = "结束时间不能为空")
    @Schema(description = "结束时间", required = true)
    private LocalDateTime endTime;
}
